package install.ren.exercise.test;

import com.alibaba.ttl.TransmittableThreadLocal;
import com.alibaba.ttl.TtlRunnable;
import org.apache.curator.utils.ThreadUtils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author jonny
 * Created on 2021/3/6
 */
public class TreadTestException {
    public static void main(String[] args) throws InterruptedException {
        ExecutorService executorService = ThreadUtils.newSingleThreadExecutor("test");

        executorService.execute(()-> System.out.println(1/0));
        //Thread thread = new Thread(()->{
        //    System.out.println(1/0);
        //});
        //thread.start();

        Thread.currentThread().join();
    }
}
